package com.yidu.role.service;

import com.yidu.role.entity.PerUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>Created with IntelliJ IDEA.</p>
 * <p>User: liandyao</p>
 * <p>Date: 2020-07-25</p>
 * <p>Time: 9:31</p>
 * <p>Description: No Description</p>
 */
@FeignClient(name="USERMICROSERVICE")
public interface UserClient {

    @RequestMapping(value="user/{id}")
    public PerUser findById(@PathVariable("id") Integer id);
}
